#pragma once
#include "GoogleStream.h"

namespace GoogleProtocol
{

class CGoogleAuth
{
public:
	CGoogleAuth();
	~CGoogleAuth(void);

public:
	BOOL AnalyzerStream(CGoogleStream* stream);
	BOOL AnalyzerBuffer(const wchar_t* pAuthBuffer);
	CGoogleAuth& operator=(CGoogleAuth * pAuth);

protected:
	friend class CGoogleUserData;
	BOOL Parse(const char* lpData);

public:
	LPCSTR GetSID(void);
	LPCSTR GetLSID(void);
	LPCSTR GetAuth(void);

private:
	string m_strSID;
	string m_strLSID;
	string m_strAuth;
};

}